package com.tony.demo.ui.performance.xnyh.memory;

public class EnumOptimize {
    public static void main(String[] args) {
        Shape shape = new Shape();
        shape.setShape(Shape.ONE | Shape.TWO);
        System.out.println(shape.getShape());


//        PersonPool personPool = new PersonPool(4);  //sparseArray是android SDK里面的
//        Person person1 = personPool.requestObj();
//        Person person2 = personPool.requestObj();
//        Person person3 = personPool.requestObj();
//        Person person4 = personPool.requestObj();
//        Person person5 = personPool.requestObj();
//
//        System.out.println(person1.hashCode());
//        System.out.println(person2.hashCode());
//        System.out.println(person3.hashCode());
//        System.out.println(person4.hashCode());


        System.out.println("DMLog*******  " + 9 / 2);

        System.out.println("DMLog*******  " + (~9));
        System.out.println("DMLog*******  " + (~(-10)));
    }
}
